package com.tinet.autentia.autentificador.svc;

import java.rmi.Remote;
import java.util.ArrayList;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.jws.soap.SOAPBinding.Style;
import javax.xml.soap.SOAPException;

import com.tinet.autentia.autentificador.model.Usuario;

@WebService
@SOAPBinding(style = Style.RPC)
public interface UsuarioWS extends Remote {

    @WebMethod(operationName = "agregar")
    boolean agregar(@WebParam(name = "usuario") Usuario usuario)
            throws SOAPException;

    @WebMethod(operationName = "listarWS")
    Usuario[] listarWS() throws SOAPException;

    @WebMethod(operationName = "listarWS2")
    ArrayList<Usuario> listar() throws SOAPException;

    @WebMethod(operationName = "getSOAPError")
    Usuario getError() throws SOAPException;
}
